#!/bin/bash

##
# 快速部署脚本
##
# rm -rf log/{access.log,traefik.log}
# git checkout -- acme.json
# chmod 600 acme.json
# data to etcd
docker run --rm -v `pwd`/traefik.toml:/config/traefik.toml traefik:latest storeconfig --configfile=/config/traefik.toml
git pull
docker-compose down
docker-compose up -d traefik acme_backend